package org.ymjava.medical.db.AllPackage.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;


/**
 * 
 * 
 * @author zhy
 * @email ${email}
 * @date 2020-04-01 14:47:52
 */
@Table(name = "favorite_for_user")
public class FavoriteForUser implements Serializable {
	private static final long serialVersionUID = 1L;
	
	    //
    @Id
    private Integer id;
	
	    //user_id
    @Column(name = "user_id")
    private Integer userId;
	
	    //问题id
    @Column(name = "question_id")
    private Integer questionId;
	
	    //添加时间
    @Column(name = "add_time")
    private Date addTime;
	
	    //逻辑删除
    @Column(name = "deleted")
    private Integer deleted;
	

	/**
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：user_id
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	/**
	 * 获取：user_id
	 */
	public Integer getUserId() {
		return userId;
	}
	/**
	 * 设置：问题id
	 */
	public void setQuestionId(Integer questionId) {
		this.questionId = questionId;
	}
	/**
	 * 获取：问题id
	 */
	public Integer getQuestionId() {
		return questionId;
	}
	/**
	 * 设置：添加时间
	 */
	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	/**
	 * 获取：添加时间
	 */
	public Date getAddTime() {
		return addTime;
	}
	/**
	 * 设置：逻辑删除
	 */
	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}
	/**
	 * 获取：逻辑删除
	 */
	public Integer getDeleted() {
		return deleted;
	}
}
